Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-syntax-import-meta

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-import-meta

Allow parsing of import.meta

  • 7.10.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26M
increased by1.71%
Maintainers
6
Weekly downloads
 
Created

What is @babel/plugin-syntax-import-meta?

The @babel/plugin-syntax-import-meta npm package allows Babel to parse the import.meta syntax, which is a meta-property exposing context-specific metadata to a JavaScript module. This plugin only allows Babel to parse this syntax; it doesn't implement any transformation.

What are @babel/plugin-syntax-import-meta's main functionalities?

Parsing import.meta syntax

This feature enables Babel to understand and parse the import.meta syntax, which is typically used to get information about the module itself, like its URL.

console.log(import.meta); // { url: 'file:///path/to/current/module.js' }

Other packages similar to @babel/plugin-syntax-import-meta

Keywords

FAQs

Package last updated on 30 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc